<div id="opt-form" class="easyui-dialog" data-options="closed: true">
    <form id="opt-form-data" method="post">
        <table class="reference">
            <tr>
                <td>名称</td>
                <td>
                    <input class="easyui-textbox" name="name" style="width:300px" data-options="required:true">
                </td>
            </tr>
            <tr id="tr-parent" style="display: none;">
                <td>父级</td>
                <td>
                    <input class="easyui-textbox" name="moduleId" id="moduleId" style="width:300px" value="0">
                    <input class="easyui-textbox" name="parentId" id="parentId" style="width:300px" value="0">
                </td>
            </tr>
            <tr>
                <td>编码</td>
                <td>
                    <input class="easyui-textbox" name="code" style="width:300px" data-options="required:true">
                </td>
            </tr>
            <tr id="tr-type" style="display: none;">
                <td>类型</td>
                <td>
                    <select class="easyui-combobox" name="type" id="label-type"
                            style="width:300px;"
                            data-options="
                            editable:false,
                            valueField: 'id',
		                    textField: 'txt',
		                    value: '字符串',
		                    data:[
		                        {'id':1, 'txt':'字符串', 'selected':true},
		                        {'id':2, 'txt':'数值型'},
		                        {'id':3, 'txt':'日期'},
		                        {'id':9, 'txt':'选项(字典)'},
		                    ],
		                    onLoadSuccess:function(data){ $('#label-type').combobox('setValue',1);}
                    ">
                    </select>
                </td>
            </tr>
            <tr id="tr-remark">
                <td>备注</td>
                <td>
                    <input class="easyui-textbox" name="remark"
                           data-options="multiline:true" style="height:40px;width:300px;">
                </td>

                </td>
            </tr>
            <tr>
                <td>排序</td>
                <td>
                    <input class="easyui-textbox" name="sort" style="width:300px" value="0" optType="number">
                </td>
            </tr>
        </table>
    </form>
</div>